package com.spzx.product.mapper;

import com.spzx.product.domain.Brand;
import com.spzx.product.domain.CategoryBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.vo.CategoryBrandVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 分类品牌 Mapper 接口
 * </p>
 *
 * @author lynn
 * @since 2025-03-12
 */
public interface CategoryBrandMapper extends BaseMapper<CategoryBrand> {

    //此处需要加上@Param注解 否则mybatis-plus无法识别 默认参数是param1 param2 param3
    List<CategoryBrandVo> selectCategoryBrandList(@Param("brandId") Integer brandId, @Param("categoryId") Integer categoryId);

    List<Brand> getBrandByCategoryId(Integer categoryId);
}
